<?php

namespace Gds\ArticleBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Gds\ArticleBundle\Entity\LigneBonTransfert
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Gds\ArticleBundle\Entity\LigneBonTransfertRepository")
 */
class LigneBonTransfert
{
    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Stock", inversedBy="lignesTransfertSource")
     * @ORM\JoinColumn(nullable=false)
     */
    private $stockSource;
    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Stock", inversedBy="lignesTransfertDestination")
     * @ORM\JoinColumn(nullable=false)
     */
    private $stockDestination;
    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\BonTransfert", inversedBy="lignes")
     * @ORM\JoinColumn(nullable=false)
     */
    private $bonTransfert;
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float $quantite
     *
     * @ORM\Column(name="quantite", type="decimal", scale=3)
     */
    private $quantite;

    /**
     * @var float $quantite_noir
     *
     * @ORM\Column(name="quantite_noir", type="decimal", scale=3)
     */
    private $quantite_noir;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set quantite
     *
     * @param float $quantite
     * @return LigneBonTransfert
     */
    public function setQuantite($quantite)
    {
        $this->quantite = $quantite;
    
        return $this;
    }

    /**
     * Get quantite
     *
     * @return float 
     */
    public function getQuantite()
    {
        return $this->quantite;
    }

    /**
     * Set quantite_noir
     *
     * @param float $quantiteNoir
     * @return LigneBonTransfert
     */
    public function setQuantiteNoir($quantiteNoir)
    {
        $this->quantite_noir = $quantiteNoir;
    
        return $this;
    }

    /**
     * Get quantite_noir
     *
     * @return float 
     */
    public function getQuantiteNoir()
    {
        return $this->quantite_noir;
    }

    /**
     * Set bonTransfert
     *
     * @param Gds\ArticleBundle\Entity\BonTransfert $bonTransfert
     * @return LigneBonTransfert
     */
    public function setBonTransfert(\Gds\ArticleBundle\Entity\BonTransfert $bonTransfert)
    {
        $this->bonTransfert = $bonTransfert;
    
        return $this;
    }

    /**
     * Get bonTransfert
     *
     * @return Gds\ArticleBundle\Entity\BonTransfert 
     */
    public function getBonTransfert()
    {
        return $this->bonTransfert;
    }

    /**
     * Set stockSource
     *
     * @param Gds\ArticleBundle\Entity\Stock $stockSource
     * @return LigneBonTransfert
     */
    public function setStockSource(\Gds\ArticleBundle\Entity\Stock $stockSource)
    {
        $this->stockSource = $stockSource;
    
        return $this;
    }

    /**
     * Get stockSource
     *
     * @return Gds\ArticleBundle\Entity\Stock 
     */
    public function getStockSource()
    {
        return $this->stockSource;
    }

    /**
     * Set stockDestination
     *
     * @param Gds\ArticleBundle\Entity\Stock $stockDestination
     * @return LigneBonTransfert
     */
    public function setStockDestination(\Gds\ArticleBundle\Entity\Stock $stockDestination)
    {
        $this->stockDestination = $stockDestination;
    
        return $this;
    }

    /**
     * Get stockDestination
     *
     * @return Gds\ArticleBundle\Entity\Stock 
     */
    public function getStockDestination()
    {
        return $this->stockDestination;
    }
}
